package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:22
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysProperty implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String propertyCatalog;

    /**
     * Attribute propertyCatalog Be Seted Falg
     */
    private boolean propertyCatalogSetted = false;

    /**
    * Attribute propertyCatalog is Null Falg
    */
    private boolean propertyCatalogNull = false;
    private String propertyCode;

    /**
     * Attribute propertyCode Be Seted Falg
     */
    private boolean propertyCodeSetted = false;

    /**
    * Attribute propertyCode is Null Falg
    */
    private boolean propertyCodeNull = false;
    private String propertyName;

    /**
     * Attribute propertyName Be Seted Falg
     */
    private boolean propertyNameSetted = false;

    /**
    * Attribute propertyName is Null Falg
    */
    private boolean propertyNameNull = false;
    private String propertyValue;

    /**
     * Attribute propertyValue Be Seted Falg
     */
    private boolean propertyValueSetted = false;

    /**
    * Attribute propertyValue is Null Falg
    */
    private boolean propertyValueNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;

    public SysProperty() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get propertyCatalog
         *
         * @return String
         */
    final public String getPropertyCatalog() {
        if (isPropertyCatalogNull()) {
            return null;
        } else {
            return StringUtils.trim(propertyCatalog);
        }
    }

    /**
     * Set propertyCatalog
     *
     * @param String
     */
    final public void setPropertyCatalog(String propertyCatalog) {
        this.propertyCatalog = StringUtils.trim(propertyCatalog);

        this.propertyCatalogSetted = true;

        this.setPropertyCatalogNull(this.propertyCatalog == null);
    }

    /**
     * Get propertyCatalog Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPropertyCatalogSetted() {
        return this.propertyCatalogSetted;
    }

    /**
     * Set propertyCatalog Null
     *
     */
    final public void setPropertyCatalogNull() {
        this.propertyCatalogNull = true;
    }

    final public void setPropertyCatalogNull(boolean aNullFlag) {
        this.propertyCatalogNull = aNullFlag;
    }

    final public boolean isPropertyCatalogNull() {
        return this.propertyCatalogNull;
    }

    /**
         * Get propertyCode
         *
         * @return String
         */
    final public String getPropertyCode() {
        if (isPropertyCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(propertyCode);
        }
    }

    /**
     * Set propertyCode
     *
     * @param String
     */
    final public void setPropertyCode(String propertyCode) {
        this.propertyCode = StringUtils.trim(propertyCode);

        this.propertyCodeSetted = true;

        this.setPropertyCodeNull(this.propertyCode == null);
    }

    /**
     * Get propertyCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPropertyCodeSetted() {
        return this.propertyCodeSetted;
    }

    /**
     * Set propertyCode Null
     *
     */
    final public void setPropertyCodeNull() {
        this.propertyCodeNull = true;
    }

    final public void setPropertyCodeNull(boolean aNullFlag) {
        this.propertyCodeNull = aNullFlag;
    }

    final public boolean isPropertyCodeNull() {
        return this.propertyCodeNull;
    }

    /**
         * Get propertyName
         *
         * @return String
         */
    final public String getPropertyName() {
        if (isPropertyNameNull()) {
            return null;
        } else {
            return StringUtils.trim(propertyName);
        }
    }

    /**
     * Set propertyName
     *
     * @param String
     */
    final public void setPropertyName(String propertyName) {
        this.propertyName = StringUtils.trim(propertyName);

        this.propertyNameSetted = true;

        this.setPropertyNameNull(this.propertyName == null);
    }

    /**
     * Get propertyName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPropertyNameSetted() {
        return this.propertyNameSetted;
    }

    /**
     * Set propertyName Null
     *
     */
    final public void setPropertyNameNull() {
        this.propertyNameNull = true;
    }

    final public void setPropertyNameNull(boolean aNullFlag) {
        this.propertyNameNull = aNullFlag;
    }

    final public boolean isPropertyNameNull() {
        return this.propertyNameNull;
    }

    /**
         * Get propertyValue
         *
         * @return String
         */
    final public String getPropertyValue() {
        if (isPropertyValueNull()) {
            return null;
        } else {
            return StringUtils.trim(propertyValue);
        }
    }

    /**
     * Set propertyValue
     *
     * @param String
     */
    final public void setPropertyValue(String propertyValue) {
        this.propertyValue = StringUtils.trim(propertyValue);

        this.propertyValueSetted = true;

        this.setPropertyValueNull(this.propertyValue == null);
    }

    /**
     * Get propertyValue Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPropertyValueSetted() {
        return this.propertyValueSetted;
    }

    /**
     * Set propertyValue Null
     *
     */
    final public void setPropertyValueNull() {
        this.propertyValueNull = true;
    }

    final public void setPropertyValueNull(boolean aNullFlag) {
        this.propertyValueNull = aNullFlag;
    }

    final public boolean isPropertyValueNull() {
        return this.propertyValueNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysProperty) == false) {
            return false;
        }

        SysProperty other = (SysProperty) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("propertyCatalog=");
        buffer.append(this.propertyCatalog);

        buffer.append("propertyCode=");
        buffer.append(this.propertyCode);

        buffer.append("propertyName=");
        buffer.append(this.propertyName);

        buffer.append("propertyValue=");
        buffer.append(this.propertyValue);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("]");

        return buffer.toString();
    }
}
